/*模式样式设置*/

* {
    margin: 0;
    padding: 0;
    /*内减模式*/
    box-sizing: border-box;
}


/*去掉列表的符号*/

li {
    list-style: none;
}

a {
    text-decoration: none;
}


/*清除浮动*/

.clearfix::before,
.clearfix::after {
    content: '';
    display: table;
}

.clearfix::after {
    clear: both;
}

body {
    background-color: #f5f3f7;
}


/*版心*/

.wrapper {
    width: 1200px;
    margin: 0 auto;
    /*  background-color: aliceblue;*/
}

.header {
    height: 42px;
    /* background-color: #985151;*/
    /*margin-top: 30px;
    margin-bottom: 30px;*/
    /*不能写margin: 30px 0；会覆盖到上面版心的margin，使其auto不生效*/
    margin: 30px auto;
}

h1 {
    float: left;
}

.nav {
    float: left;
    margin-left: 70px;
    height: 42px;
}

.nav li {
    float: left;
    margin-right: 26px;
}

.nav li a {
    /*在浮动中设置高不生效，要转换为块才生效*/
    display: block;
    padding: 0 9px;
    height: 42px;
    line-height: 42px;
    /* border-bottom: 2px solid #00a4ff;*/
    font-size: 18px;
    color: #050505;
}

.nav li a:hover {
    border-bottom: 2px solid #00a4ff;
}

.search {
    float: left;
    margin-left: 59px;
    width: 412px;
    height: 40px;
    border: 1px solid #00a4ff;
}

.search input {
    float: left;
    padding-left: 20px;
    /*左右加一起的尺寸要小于等于410*/
    width: 360px;
    height: 38px;
    border: 0;
}


/*控制placeholder的样式*/

.search input::placeholder {
    font-size: 14px;
    color: #bfbfbf;
}

.search button {
    float: left;
    width: 50px;
    height: 40px;
    background-image: url(../images/btn.png);
    border: 0;
}

.user {
    float: right;
    margin-right: 35px;
    height: 42px;
    line-height: 42px;
}

.user img {
    /*调整图片垂直对齐方式，middle：居中对齐*/
    vertical-align: middle;
}

/*轮播图背景区*/
.banner {
    height: 420px;
    background: #1c036c;
}

.banner .wrapper {
    height: 420px;
    background-image: url(../images/banner2.png);
}

/*设置文字里左边的间距，以及每行文字之间的行高*/
.banner .left {
    float: left;
    padding: 0 20px;
    /*行高属于控制文字的数下，能继承*/
    line-height: 44px;
    width: 190px;
    height: 420px;
    background-color: rgba(0, 0, 0, 0.3);
}

/*文字中的> 右浮动*/
.banner .left span {
    float: right;
}

/*设置文字的颜色大小*/
.banner .left a {
    font-size: 14px;
    color: #fff;
}

/*设置文字在鼠标悬停的颜色状态*/
.banner .left a:hover {
    color: #00a4ff;
}

.banner .right {
    float: right;
    margin-top: 50px;
    width: 228px;
    height: 300px;
    background-color: #fff;
}

/*标题：设置高度，背景色，文本居中，行高，字体大小，颜色*/
.banner .right h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}


/*设置内容中的边框*/
.banner .right .content {
    padding: 0 18px;
}

/*设置内容中每一对的边框样式*/
.banner .right .content dl {
    padding: 12px 0;
    border-bottom: 2px solid #e5e5e5;
}

/*设置内容中第一行的样式: 字体，颜色*/
.banner .right .content dt {
    font-size: 16px;
    color: #4e4e4e;
}

/*设置内容中第二行的样式: 字体，颜色*/
.banner .right .content dd {
    font-size: 14px;
    color: #4e4e4e;
}

/*设置底部样式：行高，字体，颜色，大小，转块*/
.banner .right .more {
    display: block;
    margin: 4px auto;
    width: 200px;
    height: 40px;
    border: 1px solid #00a4ff;

    font-size: 16px;
    color: #00a4ff;
    font-weight: 700;
    text-align: center;
    line-height: 40px;
}

/*设置大的布局*/
.goods {
    margin-top: 8px;
    padding-left: 34px;
    padding-right: 26px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 3px 0px rgba(118, 118, 118, 0.2);
    line-height: 60px;
}

.goods h2 {
    float: left;
    font-size: 16px;
    color: #00a4ff;
    font-weight: 400;
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods ul li {
    float: left;
}

.goods ul a {
    border-left: 1px solid #bfbfbf;
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
}

.goods .xxq {
    float: right;
    font-size: 14px;
    color: #00a4ff;
}


.box {
    margin-top: 35px;
}

.box .title {
    height: 40px;
    /*background-color: pink;*/
}

.box .title h2 {
    float: left;
    font-size: 20px;
    color: #494949;
    font-weight: 400;
}

.box .title a {
    float: right;
    margin-right: 30px;
    font-size: 12px;
    color: #a5a5a5;
}

.box .content li {
    float: left;
    position: relative;
    margin-right: 15px;
    margin-bottom: 15px;
    width: 228px;
    height: 270px;
    /*  background: pink;*/
}

.box .content li .hot{
    position: absolute;
    right:-4px; 
    top:4px; 
}

.box .content li:nth-child(5n) {
    margin-right: 0;
}

.box .content li h3 {
    padding: 20px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}

.box .content li p {
    padding: 0 20px;
    font-size: 12px;
    color: #999;
}

.box .content li span {
    color: #ff7c2d;
}

.footer {
    margin-top: 40px;
    padding-top: 30px;
    height: 417px;
    background-color: #fff;
}

.footer .left {
    float: left;
}

.footer .left p {
    margin: 20px 0 10px;
    font-size: 12px;
    color: #666;
}

.footer .left a {
    display: block;
    width: 120px;
    height: 36px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 36px;
    font-size: 16px;
    color: #00a4ff;
}

.footer .right {
    float: right;
}

.footer .right dl {
    float: left;
    margin-left: 120px;
}